< previous page page_932 next page >

Page 932
The final section in the exercise is the [Map] section. In this section, you enter numeric references to the context strings that you entered into the RTF file. Be very careful when building this section. Your context strings must be identical to the context strings entered in the RTF file. Enter the following:
[Map]; section to define context string parameters
CompanyInformation                           1
ContactInformation                           2
OtherInformation                             3
There are several other sections you can place in your project file. The [Buildtags] section, for instance, allows you to designate the topics in the RTF file that are to be compiled. There is also a [Windows] section where you can set parameters for the sizing, background colors, and locations of your help file.
You can also place an [Alias] section in your project file. Aliases allow you to assign multiple context strings to the same topic. This is useful when you delete topics in your RTF file. See the VB 5 Books Online, The Microsoft Help Compiler Guide, for a complete discussion on each of these sections.
Now that you have created your project file, it is time to compile your help application.
Compiling Your Help Project
You should now start the Microsoft Help Workshop application to compile your project. Please note that you have to install this application from the Visual Basic 5 CD if you have not already done so. The SETUP.EXE file for the Help Workshop can be found in the \\TOOLS\HCW directory of the Visual Basic 5 CD.
Once you start the Help Workshop, select File | Open . . . and find the PROJECT.HPJ file you created in the preceding exercise. Enter the name of PROJECT.HLP in the Help File box at the top of the screen. Your screen should look similar to Figure B.7.
Now select File | Compile. This brings up the Compile a Help File dialog box. Select the Browse . . . button and find the PROJECT.HPJ file you created previously. Select the Compile button to begin the compilation of your help file. The result is a PROJECT.HLP file that can be accessed directly from the Windows Explorer, or by selecting File | Run Winhelp . . . in Help Workshop.
You are prompted for any compilation errors that are written to the error file ERROR.TXT. Review any error messages you receive and then edit the project and topic file as needed. Then you can recompile your project.

 
< previous page page_932 next page >

If you like this book, buy it!